package com.cristina.attention.feign;

import com.cristina.attention.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author by superman
 */
@FeignClient("attention-web")
public interface UserFeignService {

    /**
     * 查询用户
     * @param username
     * @return
     */
    @GetMapping("/core/user/findUserByUsername")
    R findUserByUsername(@RequestParam String username);
}
